package com.asset.dispoal.business.reportAnalysis.service;

import com.asset.dispoal.business.reportAnalysis.api.ReportAnalysisService;
import com.asset.dispoal.business.reportAnalysis.dto.AnalysisResultResponse;
import com.asset.dispoal.business.reportAnalysis.dto.HomeResponse;
import com.asset.dispoal.business.reportAnalysis.service.common.HomeStatisticsCommand;
import com.asset.dispoal.business.reportAnalysis.service.common.StatisticsAgreementCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: yf
 * @date: 2022-09-21 10:14:21
 */
@Service
public class ReportAnalysisServiceImpl implements ReportAnalysisService {

    @Autowired
    private StatisticsAgreementCommand statisticsAgreementCommand;

    @Autowired
    private HomeStatisticsCommand homeStatisticsCommand;

    @Override
    public AnalysisResultResponse getAnalysisDate() {
        return statisticsAgreementCommand.execute();
    }

    @Override
    public HomeResponse getHomeInfo() {
        return homeStatisticsCommand.execute();
    }
}
